package com.hdaccp.xingmu.dao;

import com.hdaccp.xingmu.entity.Salesrecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface salesrecordDao extends JpaRepository<Salesrecord,Long> {
    @Query(value = "select * from salesrecord where number=:number",nativeQuery = true)
    public Salesrecord queryByIdNative(@Param("number") String number);
}
